package com.zxl.prototype.type3;

public class NewPrototype implements Cloneable{
	private String id;
	 
	 public String getId() {
		 return id;
	 }

	 public void setId(String id) {
		 this.id = id;
	 }

	 private Prototype prototype;
	 
	 public Prototype getPrototype() {
		 return prototype;
	 }

	 public void setPrototype(Prototype prototype) {
		 this.prototype = prototype;
	 }


	 public Object clone(){
		  NewPrototype ret = null;
		  try {
			  ret = (NewPrototype)super.clone();
			  ret.prototype = (Prototype)this.prototype.clone();
			  return ret;
		  } catch (CloneNotSupportedException e) {
			  e.printStackTrace();
			  return null;
		  }  
	 }
}
